import React from 'react';
import styles from './index.less';
class ConfirmProps {
  icon: string;
  content: JSX.Element;
  okButtonProps: {
    shape: any;
    className: string;
  };
  cancelButtonProps: {
    shape: any;
    className: string;
  };
  okText: string;
  centered: boolean;
  cancelText: string;
  constructor(title?: string, subTitle?: string) {
    this.icon = '';
    this.content = (
      <div className={styles['confirm-content']}>
        <div className={styles['title']}>{title || '是否删除该记录？'}</div>
        <div className={styles['tip']}>{subTitle || '删除后不可恢复'}</div>
      </div>
    );
    this.okButtonProps = {
      shape: 'round',
      className: 'ok-button',
    };
    this.cancelButtonProps = {
      shape: 'round',
      className: 'cancel-button',
    };
    this.okText = '确定';
    this.centered = true;
    this.cancelText = '取消';
  }
}

export default ConfirmProps;
